<?php 
  require_once("../../includes/config.php"); 
  if(isset($_GET['id']))
  {
    $conracts = query('SELECT payment_vouchers.*,contracts.contract_id As contract__id,contracts.contract_status FROM payment_vouchers 
    LEFT JOIN contracts ON payment_vouchers.contract_id = contracts.contract_id WHERE payment_vouchers.payment_id= ?',$_GET['id']);
    $payment = $conracts[0];
    renderWithoutHeader("payment_vouchers/view.php", array("payment"=>$payment,"payment_method"=>$payment_method));

  }  

?>